import request from '@/utils/request'

// 查询社区板块列表
export function listSections(query) {
  return request({
    url: '/know/sections/list',
    method: 'get',
    params: query
  })
}

// 查询社区板块详细
export function getSections(sectionId) {
  return request({
    url: '/know/sections/' + sectionId,
    method: 'get'
  })
}

// 新增社区板块
export function addSections(data) {
  return request({
    url: '/know/sections',
    method: 'post',
    data: data
  })
}

// 修改社区板块
export function updateSections(data) {
  return request({
    url: '/know/sections',
    method: 'put',
    data: data
  })
}

// 删除社区板块
export function delSections(sectionId) {
  return request({
    url: '/know/sections/' + sectionId,
    method: 'delete'
  })
}
